//
//  ViewController.m
//  DownDemo
//
//  Created by 喂！ on 2018/11/6.
//  Copyright © 2018年 well. All rights reserved.
//

#import "ViewController.h"
#import "DownManager.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    UIButton *button = [UIButton new];
    button.backgroundColor = [UIColor groupTableViewBackgroundColor];
    [button setTitle:@"下载" forState:UIControlStateNormal];
    [button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [button addTarget: self action:@selector(downAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button];
    [button mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(self.view);
        make.height.mas_equalTo(40);
        make.width.mas_equalTo(80);
    }];
    
}

-(void)downAction:(UIButton *)button
{
//    [[DownManager sharedInstance] addTaskToDownload:nil];
}


@end
